Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore invalid #RESOLUTION #868

Merged
merged 2 commits into from
Jul 21, 2024
Merged

Conversation

barbeque-squared
Copy link
Member

fixes #859

only #RESOLUTION 1 or higher is now considered valid. if an invalid resolution is encountered, it will log the following line in Error.log at startup:

ERROR:  Ignoring invalid resolution in song: /path/to/notes.txt

and internally just use the default. It will not modify the file directly, but when saving from the Editor, the illegal line will be permanently removed.

First commit fixes the problem, second commit is some housekeeping to reduce duplicated hardcoding.

@barbeque-squared barbeque-squared merged commit 89f44e7 into master Jul 21, 2024
8 checks passed
@barbeque-squared barbeque-squared deleted the ignore-invalid-resolution branch July 21, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#RESOLUTION:0 results in crash when opening song in editor
1 participant